<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2021/12/27
 * Time: 9:08
 */

namespace app\model;
class doctorModel extends \vendor\core\model
{
    protected $table_name = 'doctor';

    public function select($arr)
    {
        $sql = "select * from " . $this->table_name;
        $where = '';
        if (!empty($arr)) {
            $where="where ";
            foreach ($arr as $name => $value) {
                $where=$where.$name."='".$value."'";
            }
        }
    }
}